#define _CRT_SECURE_NO_WARNINGS 1

#include"List.h"

void Testlist1()
{
    mySTLList::list<int> lt;
    lt.push_back(1);
    lt.push_back(2);
    lt.push_back(3);
    lt.push_back(4);
    lt.push_back(5);
    lt.push_back(6);
    lt.push_back(7);
    lt.push_back(8);

    /*mySTLList::list<int>::iterator it = lt.begin();
    while (it != lt.end())
    {
        cout << *it << " ";
        ++it;
    }*/
    printList(lt);

    lt.push_front(666);

    /*mySTLList::list<int>::iterator it = lt.begin();
    while (it != lt.end())
    {
        cout << *it << " ";
        ++it;
    }*/
    printList(lt);

    mySTLList::list<int> lt1;
    lt1 = lt;
    printList(lt1);

}

int main()
{
    Testlist1();
    return 0;
}
